import request from '@/utils/request'
// 登录
export const userLogs = ({ username, password }) => {
  return request({
    url: '/user/login',
    method: 'POST',
    data: {
      username,
      password
    }
  })
}
// 轮播图
export const Banners = () => {
  return request({
    url: '/home/swiper',
    method: 'GET'
  })
}
// 查询房屋信息
export const House = () => {
  return request({
    url: '/houses',
    method: 'GET'
  })
}
// 获取城市列表数据
export const AreCty = ({ id }) => {
  return request({
    url: '/houses/condition',
    method: 'GET',
    params: {
      id
    }
  })
}
